home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
i
/
imagefxv2.1a.lha
/
ImageFX
/
Rexx
/
ReAspect.ifx
< prev
next >
Wrap
Text File
|
1996-03-02
|
655b
|
38 lines
/*
* $VER: ReAspect 1.00.00 (24.9.92)
*
* Arexx program for the ImageFX image processing system.
* Written by Thomas Krehbiel
*
* Resize a just-scanned image (at 1:1 pixel aspect) to show
* properly in a 640x400 hires interlaced monitor display.
*
*/
OPTIONS RESULTS
Redraw Off
GetMain
PARSE VAR result '"'name'"' w h d ax ay .
/* we're not using SetAspect becuase we want to do this with
one scale operation instead of two */
h = (h * ay * 22) % (26 * ax)
IF h > w THEN DO
nh = 400
nw = w * nh % h
Scale nw nh
END
ELSE DO
nw = 640
nh = h * nw % w
Scale nw nh
END
Undo Off ; Scale Border 640 400 ; Undo On
EXIT